package com.youlai.boot.system.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.youlai.boot.system.model.entity.RequestWaste;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.util.List;

/**
 * 处理记录视图对象
 *
 * @author youlaitech
 * @since 2025-02-28 16:53
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "处理记录视图对象")
public class ProcessRecordVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    @Schema(description = "关联主表")
    private Long requestId;
    private Long userId;
    private String username;
    private Long orgId;
    private String orgName;
    @Schema(description = "处理状态")
    private Integer processStatus;
    @Schema(description = "操作员id")
    private Long operationId;
    private String operatorName;
    @Schema(description = "开始处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    @Schema(description = "结束处理时间")
    private LocalDateTime endTime;
    @Schema(description = "输入物")
    private String inputObj;
    private BigDecimal inputWeight;
    @Schema(description = "输出物")
    private String outputObj;
    private BigDecimal outputWeight;
    @Schema(description = "处理过程文件")
    private List<String> fileList;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;

    private String remark;
    private List<RequestWaste> wasteList;
}
